<div class="content-wrapper" [@routerTransition]>
    <sub-header idName="Administration.Sitemap" [title]="'Sitemap' | localize">
        <div role="actions">
            <div  *ngIf="'Pages_Manange_Tenant_Seo'| permission" class="btn-group" dropdown placement="button right">
                <button id="dropdownButtonExcelOperations" dropdownToggle type="button" class="btn btn-outline-success dropdown-toggle mr-1"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-controls="dropdownMenuExcelOperations">
                    <i class="far fa-file-excel"></i> {{"ExcelOperations" | localize}}
                </button>
                <ul id="dropdownMenuExcelOperations" class="dropdown-menu dropdown-menu-right dropdown-excel-operations" role="menu" *dropdownMenu aria-labelledby="dropdownButtonExcelOperations">
                    <li  role="menuitem">
                        <a class="dropdown-item-text text-muted pl-3" (click)="uploadExcel()">
                            <input accept=".xls,.xlsx" #fileInputEle2 type="file" (change)="fileInputEle2Change($event)" multiple="true" style="display:none;">
                            <span class="pi pi-plus p-button-icon p-button-icon-left"></span>&nbsp;导入SEO
                        </a>
                    </li>
                    <li class="divider dropdown-divider"></li>
                    <li role="menuitem">
                        <span class="dropdown-item-text text-muted pl-3" href="#">
                            <small [innerHTML]="l('ImportToExcelSampleFileDownloadInfo', '<a href=/assets/sampleFiles/ImportSEOSampleFile.xlsx>' + l('ClickHere') + '</a>')"></small>
                        </span>
                    </li>
                </ul>
            </div>
            <button class="btn btn-primary blue ml-2 mr-2" (click)="generateContentUrl()">
                <i class="fa fa-save"></i>
                批量生成详情页链接
            </button>

            <button class="btn btn-primary blue mr-2" (click)="reset()">
                <i class="fa fa-undo"></i>
                {{"Reset" | localize}}
            </button>
            <button class="btn btn-primary blue" (click)="saveAll()">
                <i class="fa fa-save"></i>
                {{"Save" | localize}}
            </button>
        </div>
    </sub-header>
    <section class="content d-flex flex-column flex-column-fluid" >
        <div [class]="containerClass">
            <div class="card card-custom gutter-b">
                <div class="card-body"  [busyIf]="loading">
                    <textarea class="form-control" rows="27" name="badWordsInterception" [(ngModel)]="badWords" placeholder="Enter ..."></textarea>
                </div>
            </div>
        </div>
    </section>
</div>
